760b62a22186e2a7d5fb40b62058d33801d63a44,src/me/ryanhamshire/griefprevention/event/BlockEventHandler.java,BlockEventHandler,onBlockPlace,#ChangeBlockEvent.Place#,419

Before Change



        for (Transaction<BlockSnapshot> transaction : event.getTransactions()) {
            BlockSnapshot block = transaction.getFinal();
            if (!block.getLocation().isPresent()) {
                continue;
            }

            Claim targetClaim = this.dataStore.getClaimAt(block.getLocation().get(), true, null);
            if (user == null && sourceClaim.getOwnerUniqueId().equals(targetClaim.getOwnerUniqueId())) {
                GPTimings.BLOCK_PLACE_EVENT.stopTimingIfSync();
                return;
            }

            String denyReason = GriefPrevention.instance.allowBuild(source, block.getLocation().get(), user);
            if (denyReason != null) {
                if (source instanceof PortalTeleportCause) {
                    if (targetClaim != null && player != null) {

After Change



        for (Transaction<BlockSnapshot> transaction : event.getTransactions()) {
            BlockSnapshot block = transaction.getFinal();
            Location<World> location = block.getLocation().orElse(null);
            if (location == null) {
                continue;
            }